package router

import (
	"github.com/gin-gonic/gin"
	"oct-test10/handler"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.Use()
	r.POST("login", handler.Login)
	r.POST("addRole", handler.AddRle)
	r.POST("addQuite", handler.AddQuite)
	r.GET("list", handler.List)
	return r
}
